package com.youlai.boot.modules.brand.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.modules.brand.model.Brand;
import com.youlai.boot.modules.brand.model.BrandVO;
import com.youlai.boot.modules.brand.model.BrandPageQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BrandMapper extends BaseMapper<Brand> {

    IPage<BrandVO> getBrandPage(Page<BrandVO> page, @Param("query") BrandPageQuery query);

    IPage<BrandVO> getBrandPageByMerchantId(Page<BrandVO> page, @Param("query") BrandPageQuery query);
}